/**
 * FloatCPU describes a microprocessor for processing integers and floating 
 * point numbers.
 */
package processors;

import datastructures.*;

/**
 * @author     Konrad Paumann
 * @author     Maximilian Csuk
 * @author     Bernhard Denner
 */
public class FloatCPU extends IntCPU {
	
	private SingleCollection floatCollection = new SingleCollection();
	
	/**
	 * checks if a command is supported by the CPU
	 * returns 	true if a command is supported by the CPU
	 * 			false if a command is not supported by the CPU
	 */
	public boolean existsCommand(String command){
		return super.existsCommand(command) || floatCollection.exists(command);
	}
	
	/**
	 * adds a float-command to the FloatCPU
	 */
	public void insertFloatCommand(String command){
		floatCollection.insert(command);
	}
			
	/**
	 * returns the count of supported float-commands of the FloatCPU
	 */
	public int getFloatCommandCount(){
		return floatCollection.getSize();
	}

	

}
